package com.ly.heart.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.KingProcureRefundEntity;
import com.ly.heart.domain.vo.select.KingProcureRefundSelectVo;
import com.ly.heart.domain.vo.select.query.KingProcureRefundSelectQueryDto;

/**
 * 金蝶-采购退料单Mapper接口
 *
 * @author cxl
 * @date 2024-07-16
 */
public interface KingProcureRefundMapper extends BaseMapper<KingProcureRefundEntity> {
    /**
     * 查询金蝶-采购退料单
     *
     * @param id 金蝶-采购退料单ID
     * @return 金蝶-采购退料单
     */
    public KingProcureRefundEntity selectKingProcureRefundEntityById(String id);

    /**
     * 查询金蝶-采购退料单列表
     *
     * @param kingProcureRefundEntity 金蝶-采购退料单
     * @return 金蝶-采购退料单集合
     */
    public List<KingProcureRefundEntity> selectKingProcureRefundEntityList(KingProcureRefundEntity kingProcureRefundEntity);

    /**
     * 新增金蝶-采购退料单
     *
     * @param kingProcureRefundEntity 金蝶-采购退料单
     * @return 结果
     */
    public int insertKingProcureRefundEntity(KingProcureRefundEntity kingProcureRefundEntity);

    /**
     * 修改金蝶-采购退料单
     *
     * @param kingProcureRefundEntity 金蝶-采购退料单
     * @return 结果
     */
    public int updateKingProcureRefundEntity(KingProcureRefundEntity kingProcureRefundEntity);

    /**
     * 删除金蝶-采购退料单
     *
     * @param id 金蝶-采购退料单ID
     * @return 结果
     */
    public int deleteKingProcureRefundEntityById(String id);

    /**
     * 批量删除金蝶-采购退料单
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteKingProcureRefundEntityByIds(String[] ids);

    /**
     * 查询总数
     * @return
     */
    Integer queryCount();

    /**
     * 采购退料单选单调用接口
     * @param queryDto
     * @return
     */
    List<KingProcureRefundSelectVo> getKingProcureRefundSelect(KingProcureRefundSelectQueryDto queryDto);

    /**
     * 查询总数
     * @param queryDto
     * @return
     */
    Integer queryTotalCount(KingProcureRefundSelectQueryDto queryDto);

}
